package cn.jeeweb.modules.web.labor.service.impl;

import cn.jeeweb.core.common.service.impl.CommonServiceImpl;
import cn.jeeweb.modules.web.labor.mapper.HuPostMapper;
import cn.jeeweb.modules.web.labor.entity.HuPost;
import cn.jeeweb.modules.web.labor.service.IHuPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: hu_post
 * @Description: hu_post
 * @author rql
 * @date 2018-03-02 16:00:49
 * @version V1.0   
 *
 */
@Transactional
@Service("huPostService")
public class HuPostServiceImpl  extends CommonServiceImpl<HuPostMapper,HuPost> implements  IHuPostService {




    @Autowired
    private HuPostMapper huPostMapper;


    /**
     *
     * @param id
     * @return
     */
    public Integer updateExamine(String id,Integer state){
      HuPost huPost=huPostMapper.selectById(id);
        if(huPost!=null){
            huPost.setToState(state);
        }
        return huPostMapper.updateById(huPost);
    }
}
